from pyecharts.charts import Pie
from pyecharts import options
data = [("北京",30),("南昌",10),("杭州",20),("上海",40)]
pie = Pie()
pie.add("单位/%",data)
pie.set_global_opts(title_opts=options.TitleOpts(title="各城市岗位量占比图"))
pie.render("piera.html")
